package com.hue.entity.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ChapterVo {
    private String id;
    private String title;
    private List<VideoVo> videoList;

    public void addVideo(VideoVo videoVo){
        if(videoList == null){
            videoList = new ArrayList<>();
        }
        videoList.add(videoVo);
    }
}
